<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<link rel="stylesheet" href="../static/src/layui/css/layui.css">
		<script src="../static/src/layui/layui.js"></script>
		<script src="../static/src/js/jquery.js"></script>
		<style>
			.back{
				background-color: #EAEAEA;
			}
			
			.layui-form{
				/* border: #0000FF 1px solid; */
				background-color: #D3D4D3;
				width: 600px;
				height: 580px;
				margin-left: 200px;
				/* height: 600px; */
				margin-top: 50px;
				float: left;
					
			}
			.demoOne{
				height: 600px;
				width: 500px;
				/* border: #00F7DE 1px solid; */
				float: left;
				margin-left: 50px;
			} 
			.demoUpTwo{
				height: 500px;
				width: 500px;
				/* border: #00F7DE 1px solid; */
				/* float: left; */
				margin: auto;
				
			}
			
		</style>

	</head>
	<body class="back">
		<div class="demoOne">
			<!--************这里是上传图片的代码***************-->
			<!--************这里添加的隐藏的输入框，用来传递images的参数***************-->
			<input type="hidden" name="images" class="image">
			<div class="layui-form-item">
				<!-- <label class="layui-form-label ">照片:</label> -->
				<div class="layui-upload">
					<button type="button" class="layui-btn" id="uptest1">上传封面图片</button>
					<div class="layui-upload-list">
						<img class="layui-upload-img" id="updemo1" style="width: 500px;height: 500px;">
						<p id="updemoText1"></p>
					</div>
				</div>
			</div>
			<!--************上面里是上传图片的代码***************-->
		</div>

		<form class="layui-form" action="">

			<div class="layui-form-item">
				<label class="layui-form-label">标题</label>
				<div class="layui-input-block">
					<input type="text" maxlength="5" name="title" required lay-verify="required" placeholder="请输入标题,最大字数不超过5个" autocomplete="off" class="layui-input">
				</div>
			</div>


			<div class="layui-form-item">
				<label class="layui-form-label">商品类型</label>
				<div class="layui-input-block">
					<select name="city" lay-verify="required">
						<option value=""></option>
						<option value="0">北京</option>
						<option value="1">上海</option>
						<option value="2">广州</option>
						<option value="3">深圳</option>
						<option value="4">杭州</option>
					</select>
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">起拍价</label>
				<div class="layui-input-block">
					<input type="text"  onkeyup="value=value.replace(/^(0-)|[^\d]+/g,'')" name="title2" required lay-verify="required" placeholder="请输入正整数" autocomplete="off" class="layui-input">
				</div>
			</div>
 
			<div class="layui-form-item">
				<label class="layui-form-label">保证金</label>
				<div class="layui-input-block">
					<input type="text"  onkeyup="value=value.replace(/^(0-)|[^\d]+/g,'')"  name="title3" required lay-verify="required" placeholder="请输入正整数" autocomplete="off" class="layui-input">
				</div>
			</div>
			
			<!--设置是拍卖还是正常交易-->	
			<div class="layui-form-item">
			    <label class="layui-form-label" style="width:100px">请选择类型：</label>
			    <div class="layui-input-block" id="IsPurchased" >
			        <input type="radio"  name="t" value="0" title="拍卖" lay-filter="aaa"  checked="true"/>
			        <input type="radio"  name="t" value="1" title="交易" lay-filter="aaa"/>
			    </div>
			</div>


			<div class="layui-form-item count">
				<label class="layui-form-label">加价幅度</label>
				<div class="layui-input-block">
					<input value="0" type="text" lay-filter="aaa"  onkeyup="value=value.replace(/^(0-)|[^\d]+/g,'')" name="title4" required lay-verify="required" placeholder="请输入正整数" autocomplete="off" class="layui-input">
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">保留价</label>
				<div class="layui-input-block">
					<input type="text"  onkeyup="value=value.replace(/^(0-)|[^\d]+/g,'')" name="title5" required lay-verify="required" placeholder="请输入正整数" autocomplete="off" class="layui-input">
				</div>
			</div>

			<div class="layui-form-item">
				<!-- 注意：这一层元素并不是必须的 -->
				<label class="layui-form-label">上架日期</label>
				<!--日期只能选择不能手动输入 readonly="true"-->
				<input type="text" readonly="true" class="layui-input" id="timeOne" name="title6" style="width: 300px;	" placeholder="注意上架时间是当前选择时间后一个小时发起">
			</div>
			
			<div class="layui-form-item">
				<label class="layui-form-label">延时上架/小时</label>
				<div class="layui-input-block">
					<select name="timeOut" lay-verify="required">
						<option value=""></option>
						<option value="0">1</option>
						<option value="1">2</option>
						<option value="2">3</option>
						<option value="3">4</option>
						<option value="4">5</option>
					</select>
				</div>
			</div>
			<a href="http://www.baidu.com" target="_blank" style="margin-left: 40px;color: red;font-size: 25px;background-color: #000000;">《上架阅读须知》</a>
			<!-- 		</div> -->
			<div class="layui-form-item">
				<div class="layui-input-block">
					<button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
					<!-- <button type="reset" class="layui-btn layui-btn-primary" lay-filter="chongzhi">重置</button> -->
				</div>
			</div>
			<div style="float: right; margin-left:500px;background-color: #000000;"><p style="color: red;margin-left: 10px;margin-top: 10px;">注意:只有点击提交按钮后才可以添加附加图片！！！！</p></div>

		</form>
		
		<div class="demoUpTwo">
			<!--************这里是上传图片的代码***************-->
			<!--************这里添加的隐藏的输入框，用来传递images的参数***************-->
			<input type="hidden" name="images" class="image">
			<div class="layui-form-item">
				<!-- <label class="layui-form-label ">照片:</label> -->
				<div class="layui-upload">
					<button type="button" class="layui-btn" id="uptest2" disabled="disabled">禁用图片2</button>
					<div class="layui-upload-list">
						<img class="layui-upload-img" id="updemo2" style="width: 500px;height: 500px;">
						<p id="updemoText2"></p>
					</div>
				</div>
			</div>
			<!--************上面里是上传图片的代码***************-->
			
			<div class="demoUpTwo">
				<!--************这里是上传图片的代码***************-->
				<!--************这里添加的隐藏的输入框，用来传递images的参数***************-->
				<input type="hidden" name="images" class="image">
				<div class="layui-form-item">
					<!-- <label class="layui-form-label ">照片:</label> -->
					<div class="layui-upload">
						<button type="button" class="layui-btn" id="uptest3" disabled="disabled">禁用图片3</button>
						<div class="layui-upload-list">
							<img class="layui-upload-img" id="updemo3" style="width: 500px;height: 500px;">
							<p id="updemoText3"></p>
						</div>
					</div>
				</div>
				<!--************上面里是上传图片的代码***************-->
				
				<div class="demoUpTwo">
					<!--************这里是上传图片的代码***************-->
					<!--************这里添加的隐藏的输入框，用来传递images的参数***************-->
					<input type="hidden" name="images" class="image">
					<div class="layui-form-item">
						<!-- <label class="layui-form-label ">照片:</label> -->
						<div class="layui-upload">
							<button type="button" class="layui-btn" id="uptest4" disabled="disabled" >禁用图片4</button>
							<div class="layui-upload-list">
								<img class="layui-upload-img" id="updemo4" style="width: 500px;height: 500px;">
								<p id="updemoText4"></p>
							</div>
						</div>
					</div>
					<!--************上面里是上传图片的代码***************-->

		<script src="../static/src/ShopJs/upShop.js">
			<!-- //Demo -->
			
		</script>


	</body>
</html>
